#ifndef HTTPSERVER_H
#define HTTPSERVER_H

#include <QTcpServer>
#include <QTcpSocket>
#include <QThreadPool>
#include <QDebug>
#include "HttpReqeustTask.h"

class HttpServer : public QTcpServer {
    Q_OBJECT
public:
    explicit HttpServer();

protected:
     void incomingConnection(qintptr socketDescriptor);

signals:
    void newDescriptor(qintptr);  // 自定义信号
    void NewRequest1(QByteArray requestData);
private slots:
    void handleDescriptor(qintptr socketDescriptor);
private:
    //QTcpServer *server;
};


#endif // HTTPSERVER_H
